package bb.lanxing.model.bean;

import android.os.Parcel;
import android.os.Parcelable;
import com.alibaba.fastjson.annotation.JSONField;

public class PlaceService implements Parcelable {
    public static final Parcelable.Creator<PlaceService> CREATOR = new Parcelable.Creator<PlaceService>() {

        public PlaceService createFromParcel(Parcel parcel) {
            return new PlaceService(parcel);
        }


        public PlaceService[] newArray(int i) {
            return new PlaceService[i];
        }
    };
    @JSONField(name = "name")
    private String carServiceFlag;
    @JSONField(name = "num")
    private int carServiceIcon;
    @JSONField(name = "select")
    private String isChoose;
    @JSONField(name = "pic")
    private String servicePicUrl;

    @Override
    public int describeContents() {
        return 0;
    }

    public boolean getIsChoose() {
        String str = this.isChoose;
        return str == null || str.equals("1");
    }

    public void setIsChoose(String str) {
        this.isChoose = str;
    }

    public int getCarServiceIcon() {
        return this.carServiceIcon;
    }

    public String getCarServiceFlag() {
        return this.carServiceFlag;
    }

    public void setCarServiceIcon(int i) {
        this.carServiceIcon = i;
    }

    public void setCarServiceFlag(String str) {
        this.carServiceFlag = str;
    }

    public String getServicePicUrl() {
        return this.servicePicUrl;
    }

    public void setServicePicUrl(String str) {
        this.servicePicUrl = str;
    }

    public PlaceService() {
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.carServiceIcon);
        parcel.writeString(this.carServiceFlag);
        parcel.writeString(this.isChoose);
        parcel.writeString(this.servicePicUrl);
    }

    protected PlaceService(Parcel parcel) {
        this.carServiceIcon = parcel.readInt();
        this.carServiceFlag = parcel.readString();
        this.isChoose = parcel.readString();
        this.servicePicUrl = parcel.readString();
    }
}
